export function toLink(url) {
	console.log(url)
	uni.navigateTo({
		url: url
	});
}
export function toRe(url) {
	uni.reLaunch({
		url: url
	});
}
export function toTabs(url) {
	uni.switchTab({
		url: url,
	});
}
export function toBack(e) {
	let num = e?e:1
	uni.navigateBack({
		delta: e
	})
}
export function showTx(e) {
	uni.showToast({
		icon:'none',
		mask: true,
		title:e
	})
}
export function setStore(name,value) {
	uni.setStorageSync(name,value)
}

export function getStore(name) {
	return uni.getStorageSync(name)
}

export function Totop(){
	uni.pageScrollTo({
		scrollTop: 0,//滚动到页面的目标位置
		duration: 300
	});
}
